<template>
  <el-dialog :visible="show">
    <el-form>
      <el-form-item label="手机号">
        <input id="inputMobile">
      </el-form-item>
      <el-form-item label="密码">
        <input id="inputPassword" type="password">
      </el-form-item>
      <el-form-item>
        <el-button id="btn" type="primary" @click="handleClick">注册</el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
export default {
  props: {
    show: Boolean
  },
  methods: {
    handleClick() {
      // 发送请求
      console.log('注册成功')
      //   关窗
      //   this.$emit('changeShow', false)
      this.$emit('update:show', false)
    }
  }
}
</script>

<style>

</style>
